{* Smarty *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="ejang, maya" />
    <meta name="description" content="Do It Yourself Korea!" />
    <meta name="keywords" content="DIY, democracy" />
    <meta content="no" http-equiv="imagetoolbar" /> 

    <title>DIYCity.kr</title>
{if $page == "admin"}
    <base href="http://diycity.kr/" />
{/if}

    <link rel="stylesheet" href="blueprint/screen.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="blueprint/print.css" type="text/css" media="print" />
    <link rel="stylesheet" href="blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />
    <!--[if lt IE 8]><link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection" /><![endif]-->

    <link rel="stylesheet" href="css/common.css" type="text/css" media="screen, projection" />
{if $page == "view_report" || $page == "list_reports" || $page == "total_reports"}
    <link rel="stylesheet" href="css/base/ui.core.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="css/base/ui.all.css" type="text/css" media="screen, projection" />
{/if}
    <script type="text/javascript" src="js/common.js"></script>
    <!--[if lt IE 8]><link rel="stylesheet" href="css/common_ie.css" type="text/css" media="screen, projection" /><![endif]-->
    <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
    <!--[if IE 6]><link rel="stylesheet" href="css/common_ie6.css" type="text/css" media="screen, projection" /><![endif]-->

    <script src="http://www.google.com/jsapi?key=ABQIAAAAU94cGc0Q2UxRLa2lbmWZExT5JgxXvSaZKHPhbuBT5qruoAfgahRigr5cgUhGY0zuTzMaU9Ef--js5g" type="text/javascript"></script>
    <script type="text/javascript">
      google.load("jquery", "1.4.2");
      google.load("jqueryui", "1.8.0");

  //google.load("jquery", "1.3.2");
  //google.load("jqueryui", "1.7.2");
    </script>
{if $page == "index"}
    <link rel="stylesheet" href="css/jcarousel/jquery.jcarousel.css" type="text/css" media="screen" title="no title" charset="utf-8" />
    <link rel="stylesheet" href="css/jcarousel/skins/tango/skin.css" type="text/css" media="screen" title="no title" charset="utf-8" />
    <link rel="stylesheet" href="css/index.css" type="text/css" media="screen, projection" />
    <script src="js/jquery.jcarousel.pack.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/index.js" type="text/javascript" charset="utf-8"></script>
{/if}

{if $page == "list_reports" || $page == "view_report" || $page == "total_reports"}
    <script type="text/javascript" src="http://apis.daum.net/maps/maps2.js?apikey=459c244ff059e0d3a7fc6b0d1e7b3127edec7423" charset="utf-8"></script>
    <script type="text/javascript" src="js/fancybox/jquery.fancybox-1.2.6.pack.js"></script> 
    <link rel="stylesheet" href="css/fancybox/jquery.fancybox-1.2.6.css" type="text/css" media="screen" title="no title" charset="utf-8" />
{/if}

{if $page == "list_reports" || $page == "view_report" || $page == "total_reports" || $page == "local_alert_subscribe"}
    <script src="js/{$page}.js" type="text/javascript" charset="utf-8"></script>
{/if}

{if $page == "list_reports" || $page == "view_report"}
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.6/jquery.validate.min.js" charset="utf-8"></script>
{/if}

{if $page == "list_reports" || $page == "view_report"}
    <link rel="stylesheet" href="css/list_reports.css" type="text/css" media="screen, projection" />
{elseif $page == "local_alert"}
    <link rel="stylesheet" href="css/local_alert.css" type="text/css" media="screen, projection" />
    <script src="js/index.js" type="text/javascript" charset="utf-8"></script>
{elseif $page == "help"}
    <link rel="stylesheet" href="css/help.css" type="text/css" media="screen, projection" />
{/if}
{include file="init_script.tpl"}
  </head>
  <body>
    <!--
    <div style="margin:0;padding:0;" class="content-wrap">
      <div class="container">
	<div class="span-24 last right">
	  <div style="padding-top:5px">
	    <img src="http://diycity.kr/images/twitter_button.gif" alt="sign in with twitter" />
	  </div>
	</div>
      </div>
    </div>
    -->

    <div class="container"> <!-- GNB -->

      <div id="navigation" class="span-24 last" style="margin-top:0px">
        <ul style="">
	{if $page=="index"}
          <li class="navigation-li-selected"><a onclick="javascript:alert('지역을 먼저 검색해 주세요.')" href="#">내용 쓰기</a></li>
        {else}	
          <li {if $page=="index" || $page=="list_reports"}class="navigation-li-selected"{/if}><a href="/">내용 쓰기</a></li>
	{/if}
          <li {if $page=="total_reports"}class="navigation-li-selected"{/if}><a href="total_reports.php">전체 내용</a></li>
          <li {if $page=="local_alert"}class="navigation-li-selected"{/if}><a href="local_alert.php">지역 알림</a></li>
          <li {if $page=="help"}class="navigation-li-selected"{/if}><a href="help.php">도움말</a></li>
          <li {if $page=="board"}class="navigation-li-selected"{/if}><a href="board.php">자유게시판</a></li>
 
          <li {if $page=="contact"}class="navigation-li-selected"{/if}><a href="contact.php">연락처</a></li>
	  {if $admin}<li><a href="/admin/?logout">LOGOUT</a></li>{/if}
        </ul>
      </div>


      <div class="span-24 last" id="gnb">

      <div class="span-11">
        <div class="span-12" style="margin-top:0px">
          <h1><a style="text-decoration:none;color:black;" href="/"><span id="diycity">DIY City</span></a></h1>
	  <h2><span id="logo-korea">Korea</span>&nbsp;<span style="font-size:0.5em">beta</span></h2>
        </div>
      </div>

      </div>

    </div> <!-- ~GNB -->

    <div class="content-wrap"> <!-- 100% Content-wrap -->
      <div class="container"> <!-- content-container -->
